#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from common.readelement import Element
from page_object.webpage import WebPage

parttime = Element('jzsz/mp/delivery_parttimejob')


class DeliveryParttimeJobPage(WebPage):

    def open_parttimelist(self):
        """找兼职"""
        self.is_click(parttime['找兼职'])

    def open_newest(self):
        """打开最新列表"""
        self.is_click(parttime['最新'])

    def open_detailpage(self):
        """打开详情页"""
        self.is_click(parttime['详情'])

    def submit(self):
        """报名兼职"""
        self.is_click(parttime['报名'])

    def confirm(self):
        """确认报名"""
        self.is_click(parttime['确认'])

    def delivert_success(self):
        """报名结果判断"""
        return self.is_exists(parttime['一天不能重复报名'])



